package com.king;

import java.util.Set;

import com.google.common.collect.Sets;
import com.king.print.Printer;

/**
 * @author taomk
 * @version 1.0
 * @since 15-1-31 下午8:36
 */
public class SystemApp {
	public static void main( String[] args ) {

		Set<String> s = Sets.newHashSet();
		for (int i = 0; i < 10; i++) {
			s.add("hello"+i);
		}

		Printer.print(s.contains("hello1"));

		Printer.print("Java 运行时环境版本:" + System.getProperty("java.version"));
		Printer.print("Java 运行时环境供应商:" + System.getProperty("java.vendor"));
		Printer.print("Java 供应商的 URL :" + System.getProperty("java.vendor.url"));
		Printer.print("Java 安装目录:" + System.getProperty("java.home"));
		Printer.print("Java 虚拟机规范版本 :" + System.getProperty("java.vm.specification.version"));
		Printer.print("Java 虚拟机规范供应商 :" + System.getProperty("java.vm.specification.vendor"));
		Printer.print("Java 虚拟机规范名称 :" + System.getProperty("java.vm.specification.name"));
		Printer.print("Java 虚拟机实现版本:" + System.getProperty("java.vm.version"));
		Printer.print("Java 虚拟机实现供应商 :" + System.getProperty("java.vm.vendor"));
		Printer.print("Java 虚拟机实现名称 :" + System.getProperty("java.vm.name"));
		Printer.print("Java 运行时环境规范版本:" + System.getProperty("java.specification.version"));
		Printer.print("Java 运行时环境规范供应商:" + System.getProperty("java.specification.vendor"));
		Printer.print("Java 运行时环境规范名称 :" + System.getProperty("java.specification.name"));
		Printer.print("Java 类格式版本号:" + System.getProperty("java.class.version"));
		Printer.print("Java 类路径:" + System.getProperty("java.class.path"));
		Printer.print("加载库时搜索的路径列表 :" + System.getProperty("java.library.path"));
		Printer.print("默认的临时文件路径 :" + System.getProperty("java.io.tmpdir"));
		Printer.print("要使用的 JIT 编译器的名称:" + System.getProperty("java.compiler"));
		Printer.print("一个或多个扩展目录的路径 :" + System.getProperty("java.ext.dirs"));
		Printer.print("操作系统的名称 :" + System.getProperty("os.name"));
		Printer.print("操作系统的架构 :" + System.getProperty("os.arch"));
		Printer.print("操作系统的版本:" + System.getProperty("os.version"));
		Printer.print("文件分隔符（在 UNIX 系统中是“/”）:" + System.getProperty("file.separator"));
		Printer.print("路径分隔符（在 UNIX 系统中是“:”）:" + System.getProperty("path.separator"));
		Printer.print("行分隔符（在 UNIX 系统中是“/n”）:" + System.getProperty("line.separator"));
		Printer.print("用户的账户名称 :" + System.getProperty("user.name"));
		Printer.print("用户的主目录 :" + System.getProperty("user.home"));
		Printer.print("用户的当前工作目录 :" + System.getProperty("user.dir"));
	}
}
